<!DOCTYPE html>
<html lang="zh">
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>联系方式一机多用列表</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrapValidator.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css">
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css">
    <link rel="stylesheet" href="/css/skin.css">
    <link rel="stylesheet" href="/css/contactManager/userContactInformationManyPeopleForm.css">
    <style>
        .popover-content {
            padding: 10px 10px 7px;
        }
        .popover-content span.label {
            display: block;
            height: 24px;
            padding: 0 10px;
            margin-bottom: 3px;
            border-radius: 3px;
            line-height: 24px;
            text-align: left;
        }
        #phoneNumber {
            line-height: 38px;
            font-size: 14px;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="card">
        <div class="card-header">
            <h1>一机多用列表</h1>
        </div>
        <div class="card-body">
            <div class="row content-action">
                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
                <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
                    <div class="pull-right">
                        <!--<button class="btn btn-default" data-toggle="collapse" data-target="#filterContent"
                                aria-expanded="false" aria-controls="filterContent"><i class="mdi mdi-sort-variant"></i>高级筛选
                        </button>-->
                        <div class="min-search pull-left">
                            <input class="form-control" type="text" placeholder="请输入联系方式或姓名" id="contactName" name="contactName">
                            <button class="btn btn-primary" type="button" id="searchTwo" onclick="contactInfoTable();">
                                <i class="mdi mdi-magnify"></i><span>搜索</span>
                            </button>
                        </div>
                        <button type="button" class="btn btn-success btn-label" data-toggle="modal" data-target="#addInfoModal"><label><i class="mdi mdi-plus"></i></label>新建</button>
                    </div>
                </div>
            </div>
            <!--高级搜索内容-->
            <div class="collapse filter-content" id="filterContent">
                <div class="row">
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="custName">客户名称</label>
                        <div>
                            <input placeholder="请输入客户名称" name="custName" id="custName" type="text" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="contactInformation">联系方式</label>
                        <div>
                            <input placeholder="请输入联系方式" name="contactInformation" id="contactInformation" type="text"
                                   class="form-control" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="abolishState">废止状态</label>
                        <div>
                            <select class="form-control" id="abolishState" name="abolishState" type="text"
                                    title="请选择废止状态" data-live-search="true">
                                <option value="">请选择废止状态</option>
                                <option value="1">无废止</option>
                                <option value="2">废止</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label>&nbsp;</label>
                        <div class="text-right">
                            <button class="btn btn-primary" type="button" id="search"
                                    onclick="searchCustomerPoolList(this, 6,'')"><i
                                    class="mdi mdi-magnify"></i><span>搜索</span></button>
                            <button class="btn btn-default" id="btn-reset">重置</button>
                        </div>
                    </div>
                </div>
            </div>
            <table id="contactInfoTable"></table>
        </div>
    </div>
</div>
<!-- 详细信息 -->
<div class="modal fade" tabindex="-1" role="dialog" id="contactDitailModel">
    <div class="modal-dialog " role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>详细信息</h4>
            </div>
            <div class="modal-body">
                <input type="text" id="detailPeopleId" class="hidden">
                <div class="row m-b-15">
                    <div class="col-xs-4" id="phoneNumber"></div>
                    <div class="col-xs-8">
                        <button type="button" class="btn btn-success btn-label pull-right" id="addContactBtn" data-toggle="modal" data-target="#addContactModal"><label><i class="mdi mdi-plus"></i></label>添加</button>
                    </div>
                </div>
                <table id="contactDitailTable"></table>
            </div>
        </div>
    </div>
</div>
<!-- 添加联系人 -->
<div class="modal fade" tabindex="-1" role="dialog" data-backdrop="static" id="addContactModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>添加联系人</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <input type="text" id="addPeopleId" class="hidden" value="">
                    <input type="text" id="addContactType" class="hidden">
                    <div class="form-group">
                        <label class="control-label col-xs-3">联系人姓名</label>
                        <div class="col-xs-7">
                            <input type="text" placeholder="请输入联系人姓名" name="addContactNameVal" id="addContactNameVal" class="form-control">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="addName();">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 新建一机多人关联 -->
<div class="modal fade" tabindex="-1" role="dialog" data-backdrop="static" id="addInfoModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>新建一机多人关联</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addInfoForm">
                    <div class="form-group">
                        <label class="control-label col-xs-3 label-required">联系方式</label>
                        <div class="col-xs-7">
                            <input type="text" placeholder="请输入联系方式" name="addPhoneNumber" maxlength="20" id="addPhoneNumber" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">分机号</label>
                        <div class="col-xs-7">
                            <input type="text" placeholder="请输入分机号" name="addExtNumber" id="addExtNumber" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3 label-required">联系人姓名</label>
                        <div class="col-xs-7">
                            <input type="text" placeholder="请输入联系人姓名" name="addContactName" maxlength="20" id="addContactName" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3 label-required">企业名称</label>
                        <div class="col-xs-7">
<!--                            <input type="text" placeholder="请输入企业名称" name="addEnterprise" id="addEnterprise" class="form-control">-->
                            <select name="addEnterprise" id="addEnterprise" title="请选择企业名称" data-live-search="true" class="form-control"></select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="addContact();">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>

<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/contactManager/user/userContactInformationManyPeopleForm.js"></script>
</html>